.box {
    padding-top: 20px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #666;
}

.container {
    padding: 16px;
}

.header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px 0;
}

.header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.departmentGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding: 0 8px;
}

.departmentItem {
    background: #fff;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.departmentItem:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #e6f7ff;
}

.departmentItem:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.deptIcon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.deptName {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .departmentGrid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .departmentItem {
        padding: 16px 8px;
    }
    
    .deptName {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .departmentGrid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .departmentItem {
        padding: 24px 16px;
    }
    
    .deptName {
        font-size: 15px;
    }
}
